package com.byit.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.byit.domain.AppMessageNotice;
import com.byit.domain.vo.DictVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @ClassName IAppMessageNotice
 * @Description 通知公告
 * @Author lxp
 * @Date 2019-01-02 17:22
 **/
public interface IAppMessageNoticeService extends IService<AppMessageNotice> {

    /**
     * 逻辑删除通知公告信息
     *
     * @param params
     */
    void delAppMessageNoticeById(Map<String, Object> params);

    /**
     * 查询通知公告列表
     *
     * @param page
     * @param params
     * @return
     */
    Page<JSONObject> selectAppMessageNoticeAll(Page<AppMessageNotice> page, Map<String, Object> params);


    /**
     * 查询首页通知公告
     * @return
     */
    List<JSONObject> getAppNewsType(String title);

    Page<JSONObject> selectAppMessageNoticeAll(Page<AppMessageNotice> pageInfo, Map<String,Object> params, HttpServletRequest request);

    /**
     * <!--查询系统通知最新5条-->
     * @param params
     * @param request
     * @return
     */
    List<JSONObject> selectSystemMessage(Map<String, Object> params,HttpServletRequest request);

    /**
     *     <!--获取系统通知每种最新消息-->
     * @param params
     * @param request
     * @return
     */
    List<JSONObject> selectNesestMessage(Map<String,Object> params,HttpServletRequest request);

}
